Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[3.9] bpo-42140: Improve asyncio.wait function (GH-22938) #23233

Merged
merged 1 commit into from
Nov 10, 2020

Conversation

miss-islington
Copy link
Contributor

@miss-islington miss-islington commented Nov 10, 2020

GH- Improve asyncio.wait function

The original code creates the futures set two times.
We can create this set before, avoiding the second creation.

This new behaviour breaks the aiokafka library, because it gives an iterator to that function, so the second iteration become empty.

Automerge-Triggered-By: GH:1st1
(cherry picked from commit 7e5ef0a)

Co-authored-by: Diogo Dutra diogodutradamata@gmail.com

https://bugs.python.org/issue42140

GH- Improve asyncio.wait function

The original code creates the futures set two times.
We can create this set before, avoiding the second creation.

This new behaviour [breaks the aiokafka library](aio-libs/aiokafka#672), because it gives an iterator to that function, so the second iteration become empty.

Automerge-Triggered-By: GH:1st1
(cherry picked from commit 7e5ef0a)

Co-authored-by: Diogo Dutra <diogodutradamata@gmail.com>
@miss-islington
Copy link
Contributor Author

@dutradda: Status check is done, and it's a success ✅ .

@miss-islington
Copy link
Contributor Author

@dutradda: Status check is done, and it's a success ✅ .

@miss-islington miss-islington merged commit 33922cb into python:3.9 Nov 10, 2020
@miss-islington miss-islington deleted the backport-7e5ef0a-3.9 branch November 10, 2020 23:11
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants